Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function |wrapping_mul

std/ops/num::|wrapping_mul


Usage

|wrapping_mul<N>(a, b)

Generics

◻ N: WrappingMul

Parameters

↳ a: N
↳ b: N

Return

N


Multiply a and b, wrapping on bounds.

This function is infaillible and wrap if a × b reach boundary of the data type.